package com.animal.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class TestController {


    @GetMapping("/test")
    public String test(@RequestParam String name){
        System.out.println(name);
        return "index"+name;
    }
}
